<?php 
print_r($currentObject);

if (APP_SHOP_GENBARCODE=="yes"){

	//$currentObject->orderId;
	$articleId=$currentObject->id;
	//echo $articleId;
	$barCode=getArticleBarCode($articleId);
	

?>




<script>
$("#ButterflyPortal_data_BARCODE").hide();
</script>
<?php if (APP_SHOP_HASUNIT=="no"){ ?>
<a href="/portlet.php?app=system&operation=barcode&code=<?php echo $barCode; ?>" target="_blank">Imprimer les codes à  barres</a><br/><br/>
<?php
    } }else{

	$barCode=$currentObject->barcode;
	
	?>

<script>
$("#ButterflyPortal_data_BARCODE").focus();
</script>
<?php }?>

<div id="barcodeimage"><br/><br/>
<img src="/php/barcodegen/generate.php?code=<?php echo $barCode; ?>" />
</div>

<script>
$("#ButterflyPortal_data_BARCODE").val("<?php echo $barCode; ?>");
$("#el_BARCODE").append($("#barcodeimage").html());
$("#barcodeimage").html("");
</script>


<?php 

if (APP_SHOP_HASSEXE=="no"){
?>
<script>
var td=$("#el_GENDER").parent();
td.parent().hide();
</script>
<?php 

}

?>


<?php 

if (APP_SHOP_HASUNIT=="yes"){
?>
<script>
var td=$("#el_BARCODE").parent();
td.parent().hide();

var td=$("#el_AVAILABILITY").parent();
td.parent().hide();
</script>
<?php 

}

?>
